home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / satellite_wall_frag.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  58 lines

  1. // defines a wall which has several stages of destructibility
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_SAT_WALL_FRAG_GSH
  8. #define INCLUDED_SAT_WALL_FRAG_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. // the frag parts
  15.  
  16. hierarchy Hcy_SatWallFrag
  17. {
  18.     file    "objects\sat fragwall b_frag_a.rif"
  19.     name    "sat fragwall b_frag_a"
  20.     hotspot none
  21. }
  22.  
  23. role Rol_SatWallFrag : Rol_PlacedObject
  24. {
  25.     shape            Hcy_SatWallFrag
  26.     identifier        "sat_wall_frag"
  27.     frag control    yes
  28.     hit test ignore yes
  29. }
  30.  
  31. frag data Frg_SatWall
  32. {
  33.     role    Rol_SatWallFrag
  34.     scale    7
  35. }
  36.  
  37. // the intact wall
  38.  
  39. shape Shp_SatWall
  40. {
  41.     file "objects\sat fragwall b.RIF"
  42.     name "sat fragwall b"
  43. }
  44.  
  45. role Rol_SatWall : Rol_PlacedObject
  46. {
  47.     shape            Shp_SatWall
  48.     identifier        "sat_wall"
  49.     destructibility    Frg_SatWall
  50.     ai                blocker
  51.     destination selectable yes
  52. }
  53.  
  54. ////////////////////////////////////////////////////////////////////////////////////
  55.  
  56. // end wrapper - for preventing multiple or recursive inclusions
  57. #endif // !INCLUDED_SAT_WALL_FRAG_GSH
  58.